package com.itwxz.forum.controller.mobile;

import cn.dev33.satoken.util.SaResult;
import com.itwxz.forum.service.ForumPostCollectService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@Tag(name = "论坛用户信息Controller")
@RestController
@RequestMapping("/forum/mobile/post/collect")
public class ForumPostCollectMobileController {
    @Autowired
    private ForumPostCollectService postCollectService;

    @PostMapping
    public SaResult collect(@RequestParam String postId){
        return postCollectService.collect(postId);
    }
}
